import request from './request'

//登录接口
export const loginApi= (params)=>request.post('/admin/auth/login',params)

// 获取用户信息接口
export const getUserByTokenApi=(params)=>request.post('/admin/auth/getUserByToken',params)

// 获取商品属性管理接口
export const getAttributeApi=(params)=>request.get('/admin/attribute',{params})

// 获取分类接口
export const getCategoryApi=(params)=>request.get('/admin/category',{params})

//查询商品接口
export const getAdminGoodsApi=(params)=>request.get('/admin/goods',{params})

//查询品牌列表
export const getAdminBrandApi=(params)=>request.get('/admin/brand',{params})

//查询订单列表
export const getAdminOrderApi=(params)=>request.get('/admin/order',{params})

//查询专题列表
export const getAdminTopicApi=(params)=>request.get('/admin/topic',{params})

//上传图片
export const PostAdminUploadGoodNewPicApi=(params)=>request.post('/admin/upload/goodNewPic',params)

//运营数据
export const AdminStatApi=(params)=>request.get('/admin/stat',{params})

// 编辑/新增商品
export const AdminGoodsStoreApi=(params)=>request.post('/admin/goods/store',params)

// 商品详情
export const GetAdminGoodsInfoApi=(params)=>request.get('admin/goods/info',{params})